<template>
  <el-table ref="multipleTable" :data="videoData" tooltip-effect="dark" style="width: 100%" max-height="250"
    @selection-change="handleSelectionChange">
    <el-table-column type="index" label="序号" width="55">
    </el-table-column>
    <el-table-column type="selection" width="55">
    </el-table-column>
    <el-table-column prop="startTime" label="开始时间" width="180">
    </el-table-column>
    <el-table-column prop="endTime" label="结束时间" width="180">
    </el-table-column>
    <el-table-column prop="timeLength" label="时长" width="100">
    </el-table-column>
  </el-table>
</template>

<script>
  export default {
    props: ['videoData'],
    data() {
      return {
        multipleSelection: '',
        selectedIndexs: []
      }
    },
    methods: {
      handleSelectionChange(val) {
        this.multipleSelection = val
        this.$emit('multipleSelection', this.multipleSelection)
      }
    }
  }
</script>
